{include file="header.html"}
<style>
  .info2{ padding-bottom:40px}
  .info2 .distinction tbody td { line-height:20px; padding:8px 0}
  </style>
<div id="page_main" class="main-right">
  <div id="rightTop">
    <p>{$lang.plugin_manage}</p>
    <ul class="subnav">
      <li><span>{$lang.manage}</span></li>
    </ul>
  </div>
  <div class="info2 pb10">
    <table class="distinction">
      <!--{if $plugins}-->
      <thead>
        <tr>
          <th width="15%" align="left" style="padding-left:15px;">{$lang.plugin_name}</th>
          <th align="left">{$lang.plugin_description}</th>
          <th width="15%">{$lang.author}</th>
          <th width="10%">{$lang.version}</th>
          <th width="10%">{$lang.if_enabled}</th>
          <th class="handler">{$lang.handler}</th>
        </tr>
      </thead>
      <!--{/if}-->
      <tbody>
        <!--{foreach from=$plugins item=plugin key=key}-->
        <tr>
          <td style="padding-left:15px;">{$plugin.name|escape}</td>
          <td align="left">{$plugin.desc|escape}</td>
          <td align="center"><a href="{$plugin.website}" target="_blank"
              title="{$lang.author_website}">{$plugin.author|escape}</a></td>
          <td align="center">{$plugin.version|escape}</td>
          <td align="center">{if $plugin.enabled}{$lang.yes}{else}{$lang.no}{/if}</td>
          <td class="handler">
            <!--{if !$plugin.isInstall}-->
            <a href="{url route='plugin/install' instance=$instance code=$key}">{$lang.install}</a>
            <!--{else}-->
            <a href="javascript:;" class="J_AjaxRequest" confirm="{$lang.disable_confirm}"
              uri="{url route='plugin/uninstall' instance=$instance code=$key}">{$lang.uninstall}</a>

            | <a href="{url route='plugin/config' instance=$instance code=$key}">{$lang.config}</a>

            <!--{foreach from=$plugin.buttons item=button}-->
            | <a href="{$button.url}">{$button.label}</a>
            <!--{/foreach}-->

            <!--{/if}-->
          </td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
          <td class="no-data" colspan="6">{$lang.no_installed_plugin}</td>
        </tr>
        <!--{/foreach}-->
      </tbody>
    </table>
  </div>
</div>
{include file="footer.html"}